for i in range(100, 1000):
    num = 0

    for j in str(i):
        j = int(j)
        num = num + j ** 3
    if i == num:
        print(i)
